let endNumber: number = 10
let countNumber:number = 0
for ( let i: number = 0; i < endNumber; i++ ){
    countNumber = countNumber + i
}
console.log(countNumber);
